Error processing SSI file
LEADTOOLS (Leadtools assembly)

LEADTOOLS SDK Help   |       |    Show Table of Contents    |   

EnableEvents Method (RasterCollection<T>)








Called to enable raising the ItemAdded and ItemRemoved events.
Syntax
public void EnableEvents()
public void EnableEvents()
 function Leadtools.RasterCollection.EnableEvents()
public:
void EnableEvents(); 
'Declaration
 
Public Sub EnableEvents() 
 
'Usage
 
Dim instance As RasterCollection(Of T)
 
instance.EnableEvents()
Remarks

Calling DisableEvents will increment an internal counter. When the internal counter is 0, ItemAdded or ItemRemoved event will be raised when items are added or removed to/from this RasterCollection`1.

When the internal counter is not 0, ItemAdded and ItemRemoved events will not be raised. Therefore, for each call to DisableEvents, there should be a corresponding call to EnableEvents in order to restore the raising of events.

Example
For an example, refer to RasterCollection`1.
Requirements

Target Platforms

See Also

Reference

RasterCollection<T> Class
RasterCollection<T> Members

Error processing SSI file